package com.sanxiau.dormitory.yang;

public class demo1 {
    public static void main(String[] args) {
        int a = 3;
        int a1 = 5;
        boolean b = true;
        //基本数据类型->包装类
        Integer aa = new Integer(a);
        System.out.println(aa);
        Integer aa1 = Integer.valueOf(a1);
        System.out.println(aa1);
        Boolean bb = new Boolean(b);
        System.out.println(bb);
        //基本数据类型->字符串
        String s = a + "";
        String s1 = String.valueOf(a1);
        //包装类->字符串
        String s2 = aa.toString();
        String s3 = aa + "";
        System.out.println(s);
        System.out.println(s1);
        System.out.println(s2);
    }
}
